﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Popup.Master" AutoEventWireup="true"
    CodeBehind="Ter_ExitFormApprove.aspx.cs" Inherits="vHCS.K2App.MdlK2.ExitCheckList.Ver1.Ter_ExitFormApprove" %>

<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Message" TagPrefix="cc1" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.Security" TagPrefix="security" %>
<%@ Register Assembly="Telerik.Web.UI" Namespace="Telerik.Web.UI" TagPrefix="telerik" %>
<%@ Register Assembly="Core.Controls" Namespace="Core.Controls.DataReader" TagPrefix="core" %>
<%@ Register Src="~/MdlK2/Controls/HR_ctrEmpHeader_Info.ascx" TagName="EmpHeader"
    TagPrefix="uc" %>
<asp:Content ID="Content1" ContentPlaceHolderID="MainToolbar" runat="server">
    <asp:Button ID="btnTopSave" runat="server" Text="Submit" CssClass="btnApprove"
        OnClick="btnTopApprove_Click" ValidationGroup="Save" />
    <asp:Button ID="btnTopExport" runat="server" Text="Xuất DL" CssClass="btnExport"
        OnClick="btnBottomExport_Click" />
    <cc1:MessageSetting ID="mssUsedMessageList" runat="server">
        <Items>
            <cc1:Message Code="12295" />
            <cc1:Message Code="10095" />
        </Items>
    </cc1:MessageSetting>
    <asp:HiddenField ID="hdfEmpID" runat="server" />
    <asp:HiddenField ID="hdfsn" runat="server" />
    <asp:HiddenField ID="hdfRoleID" runat="server" />
    <asp:HiddenField ID="hdfExitType" runat="server" />
    <asp:HiddenField ID="hdfProperty" runat="server" />
    <asp:HiddenField ID="hdfCheckFAOther" runat="server"
    />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="searchWrapper">
        <uc:EmpHeader runat="server" ID="EmpHeader" OnUserChanged="EmpHeader_OnUserChanged" />
    </div>
    <div class="divClear">
    </div>
    <div style="display:none">
        <asp:TextBox ID="txtEmpID" runat="server"></asp:TextBox>
    </div>
    <div class="controlWrapper">
        <div class="div4Column">
            <div class="label">
                <asp:Label ID="lblStartDate_L" runat="server" Text="Ngày bắt đầu làm việc" /></div>
            <div class="control">
                <asp:TextBox ID="txtStartDate" runat="server" CssClass="inputReadOnly" Width="100px"
                    ReadOnly="true" /></div>
            <div class="label">
                <asp:Label ID="lblEndDate_L" runat="server" Text="Ngày làm việc cuối cùng" /></div>
            <div class="control">
                <asp:TextBox ID="txtEndDate" Width="100px" runat="server" CssClass="inputReadOnly"
                    ReadOnly="true" /></div>
        </div>
        <div class="divClear">
        </div>

        <!-- Combo chọn excutor -->
        <asp:Panel ID="pnlHRBP" runat="server" Visible="false">
            <div class="div4Column">
                <div class="label">
                    <asp:Label ID="label6" runat="server" Text="Excutor"></asp:Label>
                    <span class="labelRequiredField">(*)</span>
                </div>
                <div class="control">
                    <telerik:RadComboBox ID="cboExcutor" Width="100%" MarkFirstMatch="true" HighlightTemplatedItems="True"
                        DropDownWidth="500px" EnableLoadOnDemand="True" OnItemsRequested="RadComboBox_ItemRequested"
                        runat="server" DataSourceID="dtsReportTo" AllowCustomText="false" DataTextField="Name"
                        DataValueField="Id">
                        <HeaderTemplate>
                            <ul class="comboHeader">
                                <li class="code">
                                    <asp:Label ID="Label2" runat="server" Text="Mã"></asp:Label>
                                </li>
                                <li class="name">
                                    <asp:Label ID="Label3" runat="server" Text="Tên"></asp:Label>
                                </li>
                                <li class="divClear"></li>
                            </ul>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <ul class="comboItem">
                                <li class="code">
                                    <%#DataBinder.Eval(Container.DataItem, "Code")%></li>
                                <li class="name">
                                    <%#DataBinder.Eval(Container.DataItem, "Name")%></li>
                            </ul>
                        </ItemTemplate>
                        <FooterTemplate>
                            <div class="comboFooter">
                                <asp:Label ID="Label4" runat="server" Text="Please enter text to show more items"></asp:Label>
                            </div>
                        </FooterTemplate>
                    </telerik:RadComboBox>
                    <%--<core:CoreDataSource ID="dtsReportTo" runat="server" SelectMethod="GetComboItems"
                        TypeName="vHCS.SYS.Business.SYS_UsersCollection" MaximumRowsParameterName="">
                        <SelectParameters>
                            <asp:Parameter Name="prefix" DefaultValue="" DbType="String" />
                            <asp:Parameter Name="addNullItem" DefaultValue="true" Type="Boolean" />
                            <asp:Parameter Name="getTop" DefaultValue="true" Type="Boolean" />
                        </SelectParameters>
                    </core:CoreDataSource>--%>

                    <core:CoreDataSource ID="dtsReportTo" runat="server" SelectMethod="GetComboExecutor"
                        TypeName="vHCS.HR.Business.TER_AppForResignationCollection" MaximumRowsParameterName="">
                    </core:CoreDataSource>

                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="cboExcutor"
                        ErrorMessage="Vui lòng chọn người excutor phê duyệt" CssClass="validation" Display="Dynamic"
                        SetFocusOnError="true" ValidationGroup="Save">
                    </asp:RequiredFieldValidator>
                </div>
            </div>
            <div class="divClear">
            </div>
        </asp:Panel>

        <!-- Combo hành động Approve/Return -->
        <asp:Panel ID="PnlCB" runat="server" Visible="false">
            <div class="div4Column">
                <div class="label">
                    <asp:Label ID="label11" runat="server" Text="Hành động"></asp:Label>
                    <span class="labelRequiredField">(*)</span>
                </div>
                <div class="control">
                    <telerik:RadComboBox ID="cboActions" runat="server" Width="150px" DataSourceID="ObjectDataSource1" DataTextField="Name" DataValueField="Value" OnClientSelectedIndexChanged="SelectedReturn"></telerik:RadComboBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="cboActions"
                        ErrorMessage="Chọn hành động" CssClass="validation" Display="Dynamic" ValidationGroup="Save"
                        SetFocusOnError="True">
                    </asp:RequiredFieldValidator>
                    <br />
                    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" TypeName="K2CoreLib.K2Utils"
                        MaximumRowsParameterName="" SelectMethod="GetActions">
                        <SelectParameters>
                            <asp:QueryStringParameter Name="sn" QueryStringField="SN" DefaultValue="" />
                            <asp:QueryStringParameter Name="sharedUser" QueryStringField="SharedUser" DefaultValue="" />
                        </SelectParameters>
                    </asp:ObjectDataSource>
                </div>
            </div>
            <div class="divClear">
            </div>

            <div id="divReturn" style="display:none">
                <div class="div4Column">
                    <div class="label">
                        <asp:Label ID="label12" runat="server" Text="Thông tin trả về cho"></asp:Label>
                        <span class="labelRequiredField">(*)</span>
                    </div>
                    <div class="control">
                        <asp:CheckBoxList ID="chkReturn" runat="server" DataSourceID="dtsReturn" DataTextField="Name" DataValueField="Id"
                             RepeatColumns="2"></asp:CheckBoxList>
                        <asp:CustomValidator ID="rfvReturn" runat="server" ClientValidationFunction="CheckchkReturn" Enabled="false"
                            ErrorMessage="Vui lòng chọn thông tin trả về" CssClass="validation" Display="Dynamic" ValidationGroup="Save"
                          >
                        </asp:CustomValidator>
                        <core:CoreDataSource ID="dtsReturn" runat="server" SelectMethod="GetComboCheckList"
                            TypeName="vHCS.HR.Business.K2Collection" MaximumRowsParameterName="">
                            <SelectParameters>
                                <asp:ControlParameter ControlID="txtEmpID" Name="EmpID" PropertyName="Text" DbType="Int64" />
                            </SelectParameters>
                        </core:CoreDataSource>
                    </div>
                </div>
            </div>
        </asp:Panel>

        <div class="divClear">
        </div>
        <div class="div4Column">
            <div class="merge3">
                <span class="Bullet2"></span><asp:Label ID="Label7" runat="server" Text="Xác nhận về việc làm thủ tục đăng ký nhận Trợ cấp thất nghiệp sau khi nghỉ việc tại VNG: " />
                <asp:RadioButton ID="radBenifit_Y" runat="server" Text="Có" GroupName="Benifit" Enabled="false" />
                <asp:RadioButton ID="radBenifit_N" runat="server" Text="Không" GroupName="Benifit" Enabled="false"/>
            </div>
            <div class="divClear">
            </div>
            <div id="divBenifit" style="display: none; margin-bottom:7px; margin-top:4px;">
                <span class="Bullet1"></span> Tham khảo thông tin tại <asp:HyperLink ID="hplLinkBenifits" runat="server" Text="link."
                    NavigateUrl="http://portal.vng.com.vn/HR/HRForm/Termination/HR-CB-DO-Unemployment%20Social%20Regulation.docx"></asp:HyperLink>
            </div>
        </div>
        <div class="divClear">
        </div>
        <div class="div4Column">
            <div class="merge3">
                <span class="Bullet2"></span> <asp:Label ID="Label8" runat="server" Text="Bạn có muốn được tư vấn chi tiết hơn về thông tin trợ cấp thất nghiệp không?" />
                <asp:RadioButton ID="radConsult_Y" runat="server" Text="Có" GroupName="Consult" onclick="CheckConsult()" Enabled="false"/>
                <asp:RadioButton ID="radConsult_N" runat="server" Text="Không" GroupName="Consult" onclick="CheckConsult()" Enabled="false"/>
                <div id="divConsult" style="display: none; margin-bottom:7px; margin-top:4px;">
                    <span class="Bullet1"></span> <asp:Label ID="lblConsult" runat="server" Text="Vui lòng liên hệ bạn <strong>$HRBP$</strong> tại phòng <strong>HR lầu 13</strong> hoặc số <strong>ext ($ext$)</strong> để được hướng dẫn." />
                </div>
            </div>
            <div class="divClear">
            </div>
        </div>
        <div class="divClear">
        </div>
        <div>
            <span class="Bullet2"></span> <asp:Label ID="lblNote" runat="server" Text="Để thực hiện các thủ tục nghỉ việc phải  hoàn tất các thông tin bên dưới và sự phê duyệt của các phòng ban sau đây."></asp:Label></div>
        <asp:HiddenField ID="hdfDM" runat="server" />
        <asp:HiddenField ID="hdfFA" runat="server" />
        <asp:HiddenField ID="hdfHROther" runat="server" />
    </div>
    <asp:Panel ID="pnlDMList" runat="server">
        <br />
        <div class="div3Column">
            <div class="merge3">
                <asp:Label ID="lblDM" runat="server" CssClass="topicName" Text="A.BÀN GIAO CÔNG VIỆC" /></div>
            <div class="divClear">
            </div>
        </div>
        <div class="divGrid">
            <telerik:RadGrid ID="dtgDMList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                AllowMultiRowSelection="True" GridLines="None" Font-Names="Arial" PageSize="2"
                Height="400px" AutoGenerateColumns="False" DataSourceID="dtsDMList">
                <MasterTableView Width="100%" DataKeyNames="ExitID" Font-Names="Arial" Font-Size="10">
                    <Columns>
                        <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                        <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                        <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="40%"></HeaderStyle>
                        </telerik:GridBoundColumn>
                        <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <telerik:RadNumericTextBox ID="txtFinalPaymentDM" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                    NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                    MaxLength="10" Type="Number">
                                    <EnabledStyle HorizontalAlign="Right" />
                                </telerik:RadNumericTextBox>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                            HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <telerik:RadDatePicker ID="txtTranferDateDM" HorizontalAlign="Center" Width="100%"
                                    SelectedDate='<%# Eval("FromDate")%>' runat="server">
                                </telerik:RadDatePicker>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                           
                        </telerik:GridTemplateColumn>
                        <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                            ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                            <ItemTemplate>
                                <telerik:RadTextBox ID="txtCommentsDM" TextMode="MultiLine" Width="100%" Rows="1"
                                    Text='<%# Eval("Comment")%>' runat="server">
                                </telerik:RadTextBox>
                            </ItemTemplate>
                            <HeaderStyle Width="15%"></HeaderStyle>
                            
                        </telerik:GridTemplateColumn>
                        <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                            DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                            <HeaderStyle Width="15%"></HeaderStyle>
                        </telerik:GridDateTimeColumn>
                    </Columns>
                    <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                        Position="Bottom" />
                </MasterTableView>
                <ExportSettings Excel-Format="Html" FileName="DescList" IgnorePaging="true" ExportOnlyData="true"
                    OpenInNewWindow="true">
                    <Excel Format="Html" />
                </ExportSettings>
            </telerik:RadGrid>
            <core:CoreDataSource ID="dtsDMList" runat="server" SelectMethod="GetExitContain"
                EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                <SelectParameters>
                    <asp:ControlParameter Name="exitType" ControlID="hdfDM" DbType="Int64" DefaultValue="1" />
                    <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                        DefaultValue="0" />
                    <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                        DefaultValue="0" />
                    <asp:Parameter Name="empId" DbType="Int64" />
                </SelectParameters>
            </core:CoreDataSource>
        </div>
    </asp:Panel>
    <br />
    <div class="div3Column">
            <div class="merge3">
                <asp:Label ID="Label13" CssClass="topicName" runat="server" Text="B. BÀN GIAO CHO CÁC PHÒNG BAN LIÊN QUAN" /></div>
            <div class="divClear">
            </div>
    </div>
    <div style = "margin-left:20px;">
        <asp:Panel ID="pnlAFList" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="lblAF" runat="server" CssClass="topicName" Text="1A. PHÒNG HÀNH CHÍNH" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="Label5" runat="server" Text="Các tài sản này sẽ bàn giao cho <strong>MaiNTT</strong> tại phòng hành chánh"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgAFList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" Height="400px" AutoGenerateColumns="False"
                    DataSourceID="dtsAFList">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <%--  <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />--%>
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentAF" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="10%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                            <telerik:GridTemplateColumn DataField="ToDate" HeaderText="Ngày thu hồi" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDateAF" runat="server" Width="100%" SelectedDate='<%# Eval("ToDate")%>'>
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsAF" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsAFList" runat="server" SelectMethod="LoadViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="typeId" DbType="Int64" DefaultValue="2" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlAFListOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label1" runat="server" CssClass="topicName" Text="1B. PHÒNG HÀNH CHÍNH (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgAFListOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" Font-Names="Arial" PageSize="2"
                    Height="400px" AutoGenerateColumns="False" DataSourceID="dtsAFListOther">
                    <MasterTableView Width="100%" DataKeyNames="ExitID" Font-Names="Arial" Font-Size="10">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentDM" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateDM" HorizontalAlign="Center" Width="100%"
                                        SelectedDate='<%# Eval("FromDate")%>' runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsDM" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                    <ExportSettings Excel-Format="Html" FileName="DescList" IgnorePaging="true" ExportOnlyData="true"
                        OpenInNewWindow="true">
                        <Excel Format="Html" />
                    </ExportSettings>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsAFListOther" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfDM" DbType="Int64" DefaultValue="11" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlITList" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="lblIT" runat="server" CssClass="topicName" Text="2A. PHÒNG CÔNG NGHỆ THÔNG TIN" /></div>
                <div class="divClear">
                </div>
            </div>
            <div>
                <asp:Label ID="lblITOther" runat="server" Text="Các tài sản này sẽ được <strong>IT</strong> trực tiếp nhận bàn giao tại chỗ ngồi <strong>($Seat$)</strong> của bạn"></asp:Label>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgITList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" Height="400px" AutoGenerateColumns="False"
                    DataSourceID="dtsITList">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <%--  <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />--%>
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentIT" Width="100%" runat="server" MinValue="0"
                                        Text='<%# Eval("Account")%>' NumberFormat-DecimalDigits="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="10%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                            <telerik:GridTemplateColumn DataField="ToDate" HeaderText="Ngày thu hồi" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDateIT" Width="100%" runat="server" SelectedDate='<%# Eval("ToDate")%>'>
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsIT" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsITList" runat="server" SelectMethod="LoadViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="typeId" DbType="Int64" DefaultValue="1" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlITOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label2" runat="server" CssClass="topicName" Text="2B. PHÒNG CÔNG NGHỆ THÔNG TIN (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgITOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" Font-Names="Arial" PageSize="2"
                    Height="400px" AutoGenerateColumns="False" DataSourceID="dtsITOther">
                    <MasterTableView Width="100%" DataKeyNames="ExitID" Font-Names="Arial" Font-Size="10">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentDM" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateDM" HorizontalAlign="Center" Width="100%"
                                        SelectedDate='<%# Eval("FromDate")%>' runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsDM" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                    <ExportSettings Excel-Format="Html" FileName="DescList" IgnorePaging="true" ExportOnlyData="true"
                        OpenInNewWindow="true">
                        <Excel Format="Html" />
                    </ExportSettings>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsITOther" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfDM" DbType="Int64" DefaultValue="12" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlFAList" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="lblFA" runat="server" CssClass="topicName" Text="3A. PHÒNG TÀI CHÍNH & KẾ TOÁN" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgFAList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" Font-Names="Arial" PageSize="2"
                    Height="400px" AutoGenerateColumns="False" DataSourceID="dtsFAList">
                    <MasterTableView Width="100%" DataKeyNames="ExitID" Font-Names="Arial" Font-Size="10">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentFA" runat="server" Width="100%" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateFA" Width="100%" SelectedDate='<%# Eval("FromDate")%>'
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsFA" TextMode="MultiLine" Rows="1" Width="100%"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                    <ExportSettings Excel-Format="Html" FileName="DescList" IgnorePaging="true" ExportOnlyData="true"
                        OpenInNewWindow="true">
                        <Excel Format="Html" />
                    </ExportSettings>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsFAList" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfFA" DbType="Int64" DefaultValue="4" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlFAListOther" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label3" runat="server" CssClass="topicName" Text="3B. PHÒNG TÀI CHÍNH & KẾ TOÁN (HĐKD)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgFAListOther" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" Font-Names="Arial" PageSize="2"
                    Height="400px" AutoGenerateColumns="False" DataSourceID="dtsFAListOther">
                    <MasterTableView Width="100%" DataKeyNames="ExitID" Font-Names="Arial" Font-Size="10">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentDM" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" MinValue="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateDM" HorizontalAlign="Center" Width="100%"
                                        SelectedDate='<%# Eval("FromDate")%>' runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsDM" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                    <ExportSettings Excel-Format="Html" FileName="DescList" IgnorePaging="true" ExportOnlyData="true"
                        OpenInNewWindow="true">
                        <Excel Format="Html" />
                    </ExportSettings>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsFAListOther" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfDM" DbType="Int64" DefaultValue="13" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlHRList" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="lblHR" runat="server" CssClass="topicName" Text="4A. PHÒNG NHÂN SỰ" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHRList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" Height="400px" AutoGenerateColumns="False"
                    DataSourceID="dtsHRList">
                    <MasterTableView Width="100%">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <%-- <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />--%>
                            <telerik:GridBoundColumn DataField="Contain" HeaderText="Nội dung" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentHR" Width="100%" runat="server" Text='<%# Eval("Account")%>'
                                        NumberFormat-DecimalDigits="0" NumberFormat-DecimalSeparator="," MinValue="0"
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="10%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="FromDate" HeaderText="Ngày cấp phát" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                            <telerik:GridTemplateColumn DataField="ToDate" HeaderText="Ngày thu hồi" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtRecoveryDateHR" Width="100%" runat="server" SelectedDate='<%# Eval("ToDate")%>'>
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsHR" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="10%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsHRList" runat="server" SelectMethod="LoadViewDMProperty"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="typeId" DbType="Int64" DefaultValue="3" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" DefaultValue="0" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlHRTraining" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="Label10" runat="server" CssClass="topicName" Text="4B. PHÒNG NHÂN SỰ (Training)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHRTraining" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" Height="400px" AutoGenerateColumns="False"
                    DataSourceID="dtsHRTraining">
                    <MasterTableView Width="100%" DataKeyNames="ExitID">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" UniqueName="ContainID" HeaderText="Nội dung"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentHROther" Width="100%" MinValue="0"
                                        Text='<%# Eval("Account")%>' runat="server" NumberFormat-DecimalDigits="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateHROther" Width="100%" SelectedDate='<%# Eval("FromDate")%>'
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsOther" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsHRTraining" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:Parameter Name="exitType" DbType="Int64" DefaultValue="10" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
        <asp:Panel ID="pnlHROtherList" runat="server">
            <br />
            <div class="div3Column">
                <div class="merge3">
                    <asp:Label ID="lblHROther" runat="server" CssClass="topicName" Text="4C. PHÒNG NHÂN SỰ (OTHER)" /></div>
                <div class="divClear">
                </div>
            </div>
            <div class="divGrid">
                <telerik:RadGrid ID="dtgHROtherList" runat="server" Skin="Web20" Width="100%" AllowSorting="true"
                    AllowMultiRowSelection="True" GridLines="None" PageSize="2" Height="400px" AutoGenerateColumns="False"
                    DataSourceID="dtsHROtherList">
                    <MasterTableView Width="100%" DataKeyNames="ExitID">
                        <Columns>
                            <telerik:GridBoundColumn DataField="ExitID" HeaderText="ID Exit" Visible="false" />
                            <telerik:GridBoundColumn DataField="Code" HeaderText="Code" Visible="false" />
                            <telerik:GridBoundColumn DataField="Contain" UniqueName="ContainID" HeaderText="Nội dung"
                                HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="40%"></HeaderStyle>
                            </telerik:GridBoundColumn>
                            <telerik:GridTemplateColumn HeaderText="Số tiền đưa vào quyết toán (nếu có)" DataField="Account"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadNumericTextBox ID="txtFinalPaymentHROther" Width="100%" MinValue="0"
                                        Text='<%# Eval("Account")%>' runat="server" NumberFormat-DecimalDigits="0" NumberFormat-DecimalSeparator=","
                                        MaxLength="10" Type="Number">
                                        <EnabledStyle HorizontalAlign="Right" />
                                    </telerik:RadNumericTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ngày bàn giao" DataField="FromDate" ItemStyle-HorizontalAlign="Center"
                                HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadDatePicker ID="txtTranferDateHROther" Width="100%" SelectedDate='<%# Eval("FromDate")%>'
                                        runat="server">
                                    </telerik:RadDatePicker>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridTemplateColumn HeaderText="Ghi chú người phê duyệt" DataField="Comment"
                                ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <ItemTemplate>
                                    <telerik:RadTextBox ID="txtCommentsOther" TextMode="MultiLine" Width="100%" Rows="1"
                                        Text='<%# Eval("Comment")%>' runat="server">
                                    </telerik:RadTextBox>
                                </ItemTemplate>
                                <HeaderStyle Width="15%"></HeaderStyle>
                            
                            </telerik:GridTemplateColumn>
                            <telerik:GridDateTimeColumn DataField="ApproveDate" HeaderText="Ngày phê duyệt" DataType="System.DateTime"
                                DataFormatString="ddMMyyyy" ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center">
                                <HeaderStyle Width="15%"></HeaderStyle>
                            </telerik:GridDateTimeColumn>
                        </Columns>
                        <PagerStyle Mode="NextPrevNumericAndAdvanced" PageButtonCount="5" HorizontalAlign="Left"
                            Position="Bottom" />
                    </MasterTableView>
                </telerik:RadGrid>
                <core:CoreDataSource ID="dtsHROtherList" runat="server" SelectMethod="GetExitContain"
                    EnableCaching="false" TypeName="vHCS.LS.Business.LS_ExitFormCollection" MaximumRowsParameterName="">
                    <SelectParameters>
                        <asp:ControlParameter Name="exitType" ControlID="hdfDM" DbType="Int64" DefaultValue="8" />
                        <asp:QueryStringParameter Name="ExitTypeK2" QueryStringField="ExitType" DbType="Int64"
                            DefaultValue="0" />
                        <asp:QueryStringParameter Name="Property" QueryStringField="Property" DbType="Int64"
                            DefaultValue="0" />
                        <asp:Parameter Name="empId" DbType="Int64" />
                    </SelectParameters>
                </core:CoreDataSource>
            </div>
        </asp:Panel>
    </div>
    <asp:Panel ID="pnlXacnhan" runat="server" Visible="false">
        <div>
            <asp:Label ID="Label9" runat="server" Text="Xác nhận đã tư vấn và hướng dẫn cho nhân viên thông tin về trợ cấp thất nghiệp và các thủ tục liên quan"></asp:Label>
            <asp:CheckBox ID="chkXacnhan" runat="server" />
        </div>
    </asp:Panel>
    <div class="div3Column">
        <br />
        <div class="merge3">
            <asp:Label ID="Label85" runat="server" Font-Bold="true" Text="Lịch sử phê duyệt"></asp:Label>
        </div>
        <div class="divClear">
        </div>
    </div>
    <div class="divGrid">
        <telerik:RadGrid ID="dtgHistoryApprove" runat="server" DataSourceID="dtsHistoryApprove"
            AutoGenerateColumns="False" AllowPaging="True" AllowMultiRowSelection="True"
            GridLines="None">
            <MasterTableView>
                <Columns>
                    <telerik:GridDateTimeColumn DataField="SignDate" HeaderText="Ngày ký" HeaderStyle-HorizontalAlign="Center"
                        HeaderStyle-Width="20%" ItemStyle-HorizontalAlign="Center" DataType="System.DateTime"
                        DataFormatString="ddMMyyyy" />
                    <telerik:GridBoundColumn DataField="Signer" HeaderText="Người ký" HeaderStyle-Width="20%"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="center" />
                    <telerik:GridBoundColumn DataField="Position" HeaderText="Chức năng" HeaderStyle-Width="20%"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" />
                    <telerik:GridBoundColumn DataField="Status" HeaderText="Trạng thái" HeaderStyle-Width="20%"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" />
                    <telerik:GridBoundColumn DataField="RoleName" HeaderText="Role" HeaderStyle-Width="20%"
                        HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="left" />
                </Columns>
                <%--<PagerStyle Mode="NextPrevNumericAndAdvanced"  PageButtonCount="5" HorizontalAlign="Left"  Position="Bottom" />--%>
            </MasterTableView>
            <ClientSettings EnableRowHoverStyle="true">
                <Selecting AllowRowSelect="True" />
                <Scrolling AllowScroll="True" UseStaticHeaders="True" SaveScrollPosition="True" FrozenColumnsCount="1">
                </Scrolling>
            </ClientSettings>
        </telerik:RadGrid>
        <core:CoreDataSource ID="dtsHistoryApprove" runat="server" SelectMethod="SelectHistoryApprove"
            TypeName="vHCS.HR.Business.HR_WorkingRecordCollection" EnableCaching="False"
            MaximumRowsParameterName="">
            <SelectParameters>
                <asp:Parameter Name="ID" DefaultValue="" DbType="Int64" />
                <asp:Parameter Name="Type" DefaultValue="5" DbType="Int16" />
            </SelectParameters>
        </core:CoreDataSource>
        <telerik:RadAjaxLoadingPanel ID="RadAjaxLoadingPanel1" runat="server">
        </telerik:RadAjaxLoadingPanel>
    </div>
    <div class="formTitle">
        <div class="formToolbar">
            <asp:Button ID="btnBottomSave" runat="server" Text="Submit" CssClass="btnApprove"
                OnClick="btnTopApprove_Click" ValidationGroup="Save" />
            <asp:Button ID="btnBottomExport" runat="server" Text="Xuất DL" CssClass="btnExport"
                OnClick="btnBottomExport_Click" />
        </div>
    </div>
    <telerik:RadCodeBlock ID="radBlock" runat="server">
        <script type="text/javascript">
            function CheckApprove(sender, event) {

                var hdfEmp = document.getElementById("<%=hdfEmpID.ClientID %>");
                if (hdfEmp.value != "") {
                    //Xác nhân thao tác         
                    return vHCSConfirmObject(alertmsg_12295, event, 330, 100, '');
                }
                else {
                    new Message().ShowObject(alertmsg_10095);
                    return false;
                }
            }
            function ClosePage() {
                window.close();
            }

            function CheckConsult() {
                var rad_y = document.getElementById("<%= radConsult_Y.ClientID %>");
                var rad_n = document.getElementById("<%= radConsult_N.ClientID %>");
                var div = document.getElementById("divConsult");
                if (rad_y.checked == true) {
                    div.style.display = "block";
                }
                else {
                    div.style.display = "none";
                }
            }

            function SelectedReturn(args, event) {
                var cbo = args;
                var str_value = cbo.get_value();
                var div = document.getElementById("divReturn");
                var rfvreturn = document.getElementById("<%= rfvReturn.ClientID  %>");
                if (str_value == "Return") { //Nếu combo chọn là return thì show thông tin trả về và customvalidate
                    if (rfvreturn != null)
                        ValidatorEnable(rfvreturn, true);
                    div.style.display = "block";
                }
                else { //Nếu combo chọn approve thì hide thông tin trả về và customvalidate
                    if (rfvreturn != null)
                        ValidatorEnable(rfvreturn, false);
                    div.style.display = "none";

                }
            }

            //Hàm sử dụng validate checkboxlist thông tin trả về
            function CheckchkReturn(source, args) {
                var chkListaTipoModificaciones = document.getElementById('<%= chkReturn.ClientID %>');
                var chkLista = chkListaTipoModificaciones.getElementsByTagName("input");
                for (var i = 0; i < chkLista.length; i++) {
                    if (chkLista[i].checked) {
                        args.IsValid = true;
                        return;
                    }
                }
                args.IsValid = false;
            }  
        </script>
    </telerik:RadCodeBlock>
</asp:Content>
